<extend name="Public/base"/>

<block name="body">
    <div class="main-title">
        <h2>{$title}</h2>
    </div>
    <div style="">
        <span style="display: inline-block;margin-bottom: 8px;font-size: 16px;">产品编码：</span>
        <span style="display: inline-block;margin-bottom: 8px;font-size: 16px;">{$product.p_id|default='--'}</span>
        <span style="display: inline-block;margin-bottom: 8px;font-size: 16px;margin-left: 50px;">产品系统名称：</span>
        <span style="display: inline-block;margin-bottom: 8px;font-size: 16px;">{$product.p_name|default='--'}</span>
        <span style="display: inline-block;margin-bottom: 8px;font-size: 16px;margin-left: 50px;">状态：</span>
        <if condition="$product.status == 1"><span style="color: #00cc00;font-size: 16px">有效</span>
            <elseif condition="$product.status == 0" /><span style="color: red;font-size: 16px">无效</span>
            <elseif condition="$product.status == 2" /><span style="color: orange;font-size: 16px">挂起</span>
            <else />未知
        </if>
    </div>
    <form action="" id="form" method="post" enctype="multipart/form-data" class="form-horizontal">
        <div class="form-item">
            <label class="item-label">产品图片<span class="check-tips">(图片大小不超过2M，支持 jpg、gif、png、jpeg 格式)</span></label>
            <if condition="$product.img_url != ''">
                <p><img src="{$product.img_url}" width="240px" height="200px" /></p>
            </if>
            <input style="margin-bottom: 20px;" type="file" name="file" />
        </div>
        <div class="form-item">
            <label class="item-label">产品展示名称<span class="check-tips"></span></label>
            <div class="controls">
                <input name="name" class="text input-large" value="{$product.name}">
            </div>
        </div>
        <div class="form-item">
            <input class="btn submit-btn" type="submit" value="确 定"/>
            <!--<button class="btn submit-btn" id="submit" type="button">确 定</button>-->
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </form>
</block>

<block name="script">
    <link href="__STATIC__/datetimepicker/css/datetimepicker.css" rel="stylesheet" type="text/css">
    <php>if(C('COLOR_STYLE')=='blue_color') echo '<link href="__STATIC__/datetimepicker/css/datetimepicker_blue.css" rel="stylesheet" type="text/css">';</php>
    <link href="__STATIC__/datetimepicker/css/dropdown.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="__STATIC__/datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
    <script type="text/javascript" src="__STATIC__/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js" charset="UTF-8"></script>
    <!-- 引入CSS、JS开始 -->

    <!-- 引入CSS、JS结束 -->
    <script type="text/javascript">
        /* 当前子菜单栏高亮 */
        highlight_subnav('{:U('QRcode/product')}');

    </script>
</block>